<template>
	<van-grid :border="true"  :column-num="2">
		<van-grid-item v-for="(item,index) in list" 
				:key="index" @click='toDetails(item)'>
			<van-image :src="item.img[0]||''"></van-image>
			<van-cell :title="item.content" />
			
			 <van-cell :title='item.start' :border='false' :value="item.last+'万公里'" />
			  <van-cell value-class='price' :border='false' :value="item.price+'w'" />
		</van-grid-item>
	</van-grid>
</template>

<script>
		
	
	export default{
		components:{
			
		},
		props:['list'],
		methods:{
			
			toDetails(goods){
				localStorage.setItem('goods',JSON.stringify(goods))
				this.$router.push({path:'/detail'});
			}
		},
		
	}
</script>

<style scoped="scoped">
	.price{
		font-size: 1.2rem;
		color: red;
	}
	.gray_text{
		color:#ccc;
	}
</style>
